<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
	<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<style type="text/css">

</style>
<div id=""  style="width:100%;">
	<table width="80%" class="table table-bordered table-hover">
	<thead>
		<tr>
		<th>课程名称</th>
		<th>授课教师</th>
		<th>授课地点</th>
		</tr>
	</thead>
	<tbody>		<c:forEach items="${tcs }" var="tc">
			<tr>
				<td align="left">${tc.course.name }</td>
			<td align="left">${tc.teacher.name }</td>
			<td align="left">${tc.address }</td>
			<td>
				<c:if test="${tc.course.teachPlan == null }">
				<a href="javascript:void(0);" class="upPlan" name="${tc.course.id }">上传</a>
				</c:if>
				<c:if test="${tc.course.teachPlan != null }">
					<a href="javascript:void(0);" class="showPlan" name="${tc.course.id }">查看</a>&nbsp;&nbsp;&nbsp;
					<a href="javascript:void(0);" class="upPlan" name="${tc.course.id }">上传</a>
				</c:if>
			</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
</div>
<div  style="width:100%;text-align:center;" id="planDiv" align="center">
	<iframe src="" id="planFrame" style="display:none;width:90%;height:300px;border:0px;"></iframe>
</div>